package com.five.welcome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.five.welcome.entity.Goodsget;
import com.five.welcome.dao.GoodsgetMapper;
import com.five.welcome.service.GoodsgetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ywt
 * @since 2024-07-12
 */
@Service
public class GoodsgetServiceImpl extends ServiceImpl<GoodsgetMapper, Goodsget> implements GoodsgetService {
    @Autowired
    private GoodsgetMapper goodsgetMapper;

    @Override
    public void addGoodsGet(String sNumber) {
        goodsgetMapper.addGoodsGet1(sNumber);
        goodsgetMapper.addGoodsGet2(sNumber);
    }

    @Override
    public List<Goodsget> IsGet(String sNumber) {
        QueryWrapper<Goodsget> goodsgetQueryWrapper=new QueryWrapper<>();
        goodsgetQueryWrapper.eq("s_number",sNumber);
        return goodsgetMapper.selectList(goodsgetQueryWrapper);
    }
}
